package com.tequila.core.service;

import com.tequila.domain.dto.OrderItemDto;
import com.tequila.domain.entity.OrderItem;
import com.tequila.domain.query.OrderItemQuery;

import fe.core.Pagination;

import java.util.List;

public interface OrderItemService {

    public Pagination<OrderItemDto> queryPageListByParam(OrderItemQuery query);

    public OrderItemDto queryById(Long id);

    public List<OrderItemDto> queryByIdList(List<Long> idList);

    public List<OrderItemDto> queryListByParam(OrderItemQuery query);

    public Long insert(OrderItem entity);

    public Long save(OrderItem entity);

    public int updateById(OrderItem param);

    public int updateSelectiveById(OrderItem param);

    public int deleteById(Long id);

    public int deleteByIdList(List<Long> idList);
}
